package com.platform.service;

import com.platform.dao.ApiUserLabelMapper;
import com.platform.entity.ApiUserLabelVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 会员标签Service接口
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-05-15 15:50:14
 */
@Service
public class ApiUserLabelService {

    @Autowired
    private ApiUserLabelMapper apiUserLabelMapper;

    public void save(ApiUserLabelVo apiUserLabelVo) {
        apiUserLabelMapper.save(apiUserLabelVo);
    }

    public List<ApiUserLabelVo> selectList(Map<String, Object> paramsLabel) {
        return apiUserLabelMapper.queryList(paramsLabel);
    }

    public List<Map<String, Object>> selectMap(Map<String, Object> params) {
        return apiUserLabelMapper.selectMap(params);
    }

    public void del(Long id) {
        apiUserLabelMapper.delete(id);
    }
}
